const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 返回token字符串(不带Bearer前缀)
  avatar: state => state.user.userInfo.staffPhoto, // 返回头像地址
  name: state => state.user.userInfo.username // 返回用户名
}
export default getters
